package org.example.onlineEducation.service;

import org.example.onlineEducation.dao.MenuDao;
import org.example.onlineEducation.entity.Menu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuService {

    @Autowired
    private MenuDao dao;

    public List<Menu> selectAllByRoleId(Integer roleId){
        return dao.selectAllByRoleId(roleId);
    }
}
